# -*- coding: utf-8 -*-
# FileName: urls.py
# Create by Hardy on 2020-07-22
# Description:

from django.urls import path, re_path
from rest_framework.urlpatterns import format_suffix_patterns
from schools import views

urlpatterns = format_suffix_patterns([
    re_path(r'^students/$', views.StudentList.as_view()),
    re_path(r'^students/(?P<pk>[0-9]+)/$', views.StudentDetail.as_view()),
    re_path(r'^articles/$', views.ArticleList.as_view()),
    re_path(r'^articles/(?P<pk>[0-9]+)/$', views.ArticleDetail.as_view()),
])
